﻿<?
	require_once 'lib/function.php';
	$arrOptions = $db->fetch_all_assoc("select optionname,optionvalue from ".dbprefix."system_options");
foreach($arrOptions as $item){
	$strOption[$item['optionname']] = stripslashes($item['optionvalue']);
}
	$testMode = 'false';
	if ($testMode=='true'){
	   $url = 'http://gw.api.tbsandbox.com/router/rest?';  //沙箱环境提交URL
	$appKey = 'test';  
 $appSecret = 'test'; 	
  $userNick = 'sandbox_c_2';  	
	}else if($testMode=='false'){
	   $url = 'http://gw.api.taobao.com/router/rest?';  //正式环境提交URL
	$appKey = $strOption[taoAppKey]; //填写自己申请的AppKey
 $appSecret = $strOption[taoAppSecret]; //填写自己申请的$appSecret
  $userNick = $strOption[taoname]; //淘宝昵称		
	}		

?>